package logrus.beanmock.invoker;

import java.lang.reflect.Method;

public class DelegateMethodInvoker extends AbstractMethodInvoker {

    private Object delegate;

    public DelegateMethodInvoker(Object delegate) {
        this.delegate = delegate;
    }

    @Override
    protected Object doInvoke(Object target, Method method, Object... args) throws Throwable {
        return method.invoke(delegate, args);
    }

}
